package com.code.day14;

import java.util.Date;

public class Day14System {
    public static void main(String[] args) {
        long time = System.currentTimeMillis();
        System.out.println(time);

        Date date = new Date(time);
        System.out.println(date);

//        for (int i = 0; i <10 ; i++) {
//            if(i ==5){
//                System.exit(0);
//            }
//            System.out.println("我爱java");
//        }
        /**
         *   static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length)
         *                                 src:源数组
         *                                 srcPos:从源数组的哪个索引开始复制
         *                                 dest:目标数组 ->复制到哪个数组里面去
         *                                 destPos:从目标数组的哪个索引开始粘贴
         *                                 length:复制多少个
         */
        int[] arr={1,2,3,4,5};
        int[] arr2 = new int[arr.length];
        System.arraycopy(arr,0,arr2,0,arr.length);
        for (int i : arr2) {
            System.out.println(i+" ");

        }
    }



}
